
<div class="aw-content-wrap">
    <div class="mod">
        <div class="mod-head">
            <h3>
                <ul class="nav nav-tabs">
                    <li><a href="{:U('Admin/User/index')}">会员列表</a></li>
                    <!--<li><a href="http://127.0.0.1/wenda/?/admin/user/list/type-forbidden">封禁用户</a></li>-->
                    <!--<li><a href="http://127.0.0.1/wenda/?/#search" data-toggle="tab">搜索</a></li>-->
                    <li class="active"><a href="{:U('Admin/User/add')}" data-toggle="tab">添加用户</a></li>
                </ul>
            </h3>
        </div>

        <div class="tab-content mod-content">
            <div class="tab-pane active" id="add">
            <div class="table-responsive">
            <form action="{:U('Admin/User/add')}" id="settings_form" method="post">
            <table class="table table-striped">
                <tbody><tr>
                    <td>
                        <div class="form-group">
                            <span class="col-sm-4 col-xs-3 control-label">用户名:</span>
                            <div class="col-sm-5 col-xs-8">
                                <input class="form-control" name="username" type="text" value="">
                            </div>
                        </div>
                    </td>
                </tr>

                <tr>
                    <td>
                        <div class="form-group">
                            <span class="col-sm-4 col-xs-3 control-label">邮箱:</span>
                            <div class="col-sm-5 col-xs-8">
                                <input class="form-control" name="email" type="text" value="">
                            </div>
                        </div>
                    </td>
                </tr>

                <tr>
                    <td>
                        <div class="form-group">
                            <span class="col-sm-4 col-xs-3 control-label">密码:</span>
                            <div class="col-sm-5 col-xs-8">
                                <input class="form-control" name="password" type="password" value="">
                            </div>
                        </div>
                    </td>
                </tr>

                <tr>
                    <td>
                        <div class="form-group">
                            <span class="col-sm-4 col-xs-3 control-label">用户组:</span>
                            <div class="col-sm-5 col-xs-8">
                                <select class="form-control" name="group_name">
                                    <foreach name="groupInfo" item="v">
                                        <option value="{$v['group_name']}" selected>{$v['group_name']}</option>
                                    </foreach>
                                </select>
                            </div>
                        </div>
                    </td>
                </tr>

                </tbody><tfoot>
                <tr>
                    <td>
                        <!--<input type="button" value="添加用户" class="btn btn-primary center-block" onclick="AWS.ajax_post($(&#39;#settings_form&#39;));">-->
                        <input type="submit" class="btn btn-primary center-block"  value="添加用户">
                    </td>
                </tr>
                </tfoot>
            </table>
            </form>
            </div>
            </div>

            <div class="tab-pane" id="search">
                <form method="post" action="http://127.0.0.1/wenda/?/admin/user/list/" onsubmit="return false;" id="search_form" class="form-horizontal" role="form">

                    <input name="action" type="hidden" value="search">

                    <div class="form-group">
                        <label class="col-sm-2 col-xs-3 control-label">用户名:</label>

                        <div class="col-sm-5 col-xs-8">
                            <input class="form-control" type="text" value="" name="username">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 col-xs-3 control-label">邮箱:</label>

                        <div class="col-sm-5 col-xs-8">
                            <input class="form-control" type="text" value="" name="email">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 col-xs-3 control-label">用户组:</label>

                        <div class="col-sm-5 col-xs-8">
                            <select name="group_id" class="form-control">
                                <option value=""></option>
                                                                <option value="1">超级管理员</option>
                                                            <option value="2">前台管理员</option>
                                                            <option value="3">未验证会员</option>
                                                            <option value="4">普通会员</option>
                                                            <option value="99">游客</option>
                                                        </select>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 col-xs-3 control-label">最后登录 IP 段:</label>

                        <div class="col-sm-5 col-xs-8">
                            <input class="form-control" type="text" value="" name="ip">

                            <span class="help-block">限 C 段, 如: 203.31.42.*</span>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 col-xs-3 control-label">积分:</label>

                        <div class="col-sm-6 col-xs-9">
                            <div class="row">
                                <div class="col-xs-11  col-sm-5 mod-double">
                                    <input type="text" class="form-control" name="integral_min" value="">
                                </div>
                                <span class="mod-symbol col-xs-1 col-sm-1">
                                -
                                </span>
                                <div class="col-xs-11 col-sm-5">
                                    <input type="text" class="form-control" name="integral_max" value="">
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 col-xs-3 control-label">威望:</label>

                        <div class="col-sm-6 col-xs-9">
                            <div class="row">
                                <div class="col-xs-11  col-sm-5 mod-double">
                                    <input type="text" class="form-control" name="reputation_min" value="">
                                </div>
                                <span class="mod-symbol col-xs-1 col-sm-1">
                                -
                                </span>
                                <div class="col-xs-11 col-sm-5">
                                    <input type="text" class="form-control" name="reputation_max" value="">
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 col-xs-3 control-label">职业:</label>

                        <div class="col-sm-5 col-xs-8">
                            <select name="category_id" class="form-control">
                                <option value="0"></option>
                                                                    <option value="1">销售</option>
                                                                    <option value="2">市场/市场拓展/公关</option>
                                                                    <option value="3">商务/采购/贸易</option>
                                                                    <option value="4">计算机软、硬件/互联网/IT</option>
                                                                    <option value="5">电子/半导体/仪表仪器</option>
                                                                    <option value="6">通信技术</option>
                                                                    <option value="7">客户服务/技术支持</option>
                                                                    <option value="8">行政/后勤</option>
                                                                    <option value="9">人力资源</option>
                                                                    <option value="10">高级管理</option>
                                                                    <option value="11">生产/加工/制造</option>
                                                                    <option value="12">质控/安检</option>
                                                                    <option value="13">工程机械</option>
                                                                    <option value="14">技工</option>
                                                                    <option value="15">财会/审计/统计</option>
                                                                    <option value="16">金融/银行/保险/证券/投资</option>
                                                                    <option value="17">建筑/房地产/装修/物业</option>
                                                                    <option value="18">交通/仓储/物流</option>
                                                                    <option value="19">普通劳动力/家政服务</option>
                                                                    <option value="20">零售业</option>
                                                                    <option value="21">教育/培训</option>
                                                                    <option value="22">咨询/顾问</option>
                                                                    <option value="23">学术/科研</option>
                                                                    <option value="24">法律</option>
                                                                    <option value="25">美术/设计/创意</option>
                                                                    <option value="26">编辑/文案/传媒/影视/新闻</option>
                                                                    <option value="27">酒店/餐饮/旅游/娱乐</option>
                                                                    <option value="28">化工</option>
                                                                    <option value="29">能源/矿产/地质勘查</option>
                                                                    <option value="30">医疗/护理/保健/美容</option>
                                                                    <option value="31">生物/制药/医疗器械</option>
                                                                    <option value="32">翻译（口译与笔译）</option>
                                                                    <option value="33">公务员</option>
                                                                    <option value="34">环境科学/环保</option>
                                                                    <option value="35">农/林/牧/渔业</option>
                                                                    <option value="36">兼职/临时/培训生/储备干部</option>
                                                                    <option value="37">在校学生</option>
                                                                    <option value="38">其他</option>
                                                            </select>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 col-xs-3 control-label">居住地:</label>

                        <div class="col-sm-3 col-xs-3">
                            <select name="province" class="select_area form-control"></select>
                        </div>
                        <div class="col-sm-3 col-xs-3">
                            <select name="city" class="select_area form-control hide"></select>
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-sm-offset-2 col-sm-5 col-xs-8">
                            <button type="button" onclick="AWS.ajax_post($(&#39;#search_form&#39;));" class="btn btn-primary">搜索</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
